﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Login.aspx.cs" Inherits="Cms.Web.CmsSystem.Login"
    EnableViewState="false" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>
    <link href="../App_Themes/default/CoreEdit.css" rel="stylesheet" type="text/css" />
    <style type="text/css">
        .behavior
        {
        }
        #top
        {
            height: 100px;
            background: #073364;
        }
        #middle
        {
            background: url("/App_Themes/Default/Images/middlebg.png");
            background-repeat: repeat-x;
            height: 452px;
            padding: 20px 0 0 0;
            border: 0;
        }
        #login
        {
            width: 300px;
            margin: 50px auto;
            border-radius: 5px;
            background: #F3F8FC;
            box-shadow: 10px 10px 2px;
        }
        #login .title
        {
            height: 30px;
            line-height: 30px;
            background: #094083;
            color: #fff;
            border-radius: 5px 5px 0 0;
            padding: 5px;
            border: 0;
            font-weight: bold;
        }
        #bottom
        {
            text-align: center;
        }
        body
        {
            margin: 0;
            padding: 0;
            background: #EDFCFF;
        }
    </style>
    <script type="text/javascript">
        function $(id) {
            return document.getElementById(id);
        }
        function beforeSubmit() {
            if ($("<%=txtUser.ClientID %>").value != "" && $("<%=txtCode.ClientID %>").value != "") {
                return true;
            }
            else {
                alert("用户名和验证码必填!");
                return false;
            }
        }
    </script>
</head>
<body>
    <form id="form1" runat="server">
    <div id="top">
    </div>
    <div id="middle">
        <div id="login" class="login behavior">
            <div class="title behavior">
                请输入用户名和密码
            </div>
            <div class="box">
                <div class="row">
                    <label class="label">
                        用户名</label>
                    <label class="input">
                        <asp:TextBox ID="txtUser" Style="width: 169px" runat="server"></asp:TextBox>
                    </label>
                </div>
                <div class="row">
                    <label class="label">
                        密码</label>
                    <label class="input">
                        <asp:TextBox ID="txtPass" runat="server" Style="width: 169px" TextMode="Password"></asp:TextBox></label>
                </div>
                <div class="row">
                    <label class="label">
                        验证码</label>
                    <label class="input">
                        <asp:TextBox ID="txtCode" runat="server" CssClass="SI"></asp:TextBox>
                        <img class="SI" src="/tools/File.ashx?param=getrandomcode&" onclick='this.src=this.src+1'
                            height="24px" alt="验证码" />
                    </label>
                </div>
                <div class="row">
                    <label class="label">
                    </label>
                    <label style="text-align: center;">
                        <input id="btnSubmit" runat="server" type="submit" class="button" value="登录" onclick="return beforeSubmit();"
                            onserverclick="btnLogin_Click" enableviewstate="False" style="width: 169px; text-align: center;" />
                    </label>
                </div>
                <asp:Label ID="lbmsg" runat="server" CssClass="label" Style="color: Red;"></asp:Label></div>
        </div>
    </div>
    <div id="bottom">
        版权所有@沧浪雾月客
    </div>
    </form>
</body>
</html>
